import request from '@/utils/request'

// 查询门禁权限设备列表
export function listMjPermisionDevice(query) {
  return request({
    url: '/energy/mjPermisionDevice/list',
    method: 'get',
    params: query
  })
}

// 查询门禁权限设备详细
export function getMjPermisionDevice(id) {
  return request({
    url: '/energy/mjPermisionDevice/' + id,
    method: 'get'
  })
}

// 新增门禁权限设备
export function addMjPermisionDevice(data) {
  return request({
    url: '/energy/mjPermisionDevice',
    method: 'post',
    data: data
  })
}

// 修改门禁权限设备
export function updateMjPermisionDevice(data) {
  return request({
    url: '/energy/mjPermisionDevice',
    method: 'put',
    data: data
  })
}

// 删除门禁权限设备
export function delMjPermisionDevice(id) {
  return request({
    url: '/energy/mjPermisionDevice/' + id,
    method: 'delete'
  })
}
